 long startMills;
 long tv_startMills;
 
-byte termometru[8] = 
+byte termometru[8] =
 {
   B00100,
   B01010,

    Serial.println("Failed to read from sensor!");
    return;
  }
// temp

 }


void loop()
{

}


void getdalastemp()
{
    sensors.requestTemperatures();
    tempCinside  = sensors.getTempC(insideThermometer);

  if ( isnan(tempCinside) ) {
    Serial.println("Failed to read from sensor!");

D4 - TEMP(DS18B20) /IN
D3 - IR / OUT
D2 - PIR /IN
*/




#include <Wire.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <LiquidCrystal_I2C.h>
#include <IRremote.h>

//
int SETUP_IN_PIN = A2;
//int ENTER_IN_PIN = A0;
int ENTER_IN_PIN = 13;
int UP_IN_PIN    = 12;
int DN_IN_PIN    = 11;

//
int IR_IN_PIN    = 10;
int PIR_IN_PIN   = 2;

int BZ_OU_PIN    =  9;

// LCD
LiquidCrystal_I2C lcd(0x27, 20, 4);

// IR
#define maxLen 800

volatile  unsigned int irBuffer[maxLen]; //stores timings - volatile because changed by ISR
volatile unsigned int x = 0; //Pointer thru irBuffer - volatile because changed by ISR

IRrecv irrecv(IR_IN_PIN);
IRsend irsend;

