https://diyprojectslab.com/ir-sensor-with-raspberry-pi-pico-micropytho/
How To Use IR Sensor With Raspberry Pi Pico Using Micropython