-/*
-Materials are took from "Exploring Arduino"
-*/
-
 //LCD text with incrementing number
 //Include the library code:
 

const uint8_t l_EntranceToBedroom = 1; //  Entrance to bedroom
const uint8_t l_ExitFromOffice = 2; //  Exit from office
const uint8_t l_ExitFromBedroom = 3; //  Exit from bedroom
//  Предназначения этих аналоговых входов пока что не определены
const uint8_t LIGHT4 = 4;
const uint8_t LIGHT5 = 5;


  value4 = analogRead(LIGHT4);
  value5 = analogRead(LIGHT5);

  //  Processing data from photoresistors
  if (abs(v_ToOffice - v_old_ToOffice) > DIFFERENCE) {
    if (v_ToOffice < THRESHOLD) {
      if (!isSending0) {
