MicroPython script to interface an IR sensor (or PIR sensor) with esp32 - Wokwi ESP32, STM32, Arduino Simulator