Logical Expression for the circuit - Wokwi ESP32, STM32, Arduino Simulator