 
 void setup()
 {
+  //  Setting baud_rate - speed of UART synchronization/
   Serial.begin(9600);
   for (USHORT i = 0; i < 6; ++i) {
     pinMode(button[i], INPUT);

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

  //  Обработка полученных данных с фотосенсоров
  if (abs(v_ToOffice - v_old_ToOffice) > DIFFERENCE) {
    if (v_ToOffice < THRESHOLD) {
      if (!isSending0) {

  //  Опрос кнопок с использованием антидребезговой системы
  for (USHORT i = 0; i < 6; ++i) {
    current_state[i] = debounce(current_state[i], last_state[i], button[i]);
    //  If button was really pressed
    //  then send string
    if (last_state[i] == LOW && current_state[i] == HIGH)
      Serial.print(buttonString[i]);
  }
  
  /*---------------------------------------------------------------------------------------*/
  // Realization of sensors listening

  v_ToOffice = analogRead(l_EntranceToOffice);  
  v_ToBedroom = analogRead(l_EntranceToBedroom);
