Interfacing IR sensor with ESP32 using ESP-IDF