Research Article

IoT-Based Smart Management of Healthcare Services in Hospital Buildings during COVID-19 and Future Pandemics

Algorithm 3

If sensor S1 and sensor T1 detect the movement in the same way and +1 direction, it will increase the total value.
  / Thread-2 /
  void thread2(void unused){
  int value;
  value = (int ) unused;
  if(S1 == OUT && T1 == OUT){
  /if sensorS1 and sensorT1 detect
  the movement in the same
  way and -1 direction it will
  decrease the total value. /
  room --;
  }
  while(1); /loop forever/
  }