Line follower robot

I bought ESP32 board, 360º servos and a KY-033 infrared sensor to build a line follower robot.
But now I don’t find de right codeSkool command to use the IR sensor
How it would be the way to connect this sensor?
Thank you for your answer

Why can’t you use simple digitalRead?

Thank you very much, I will try it

It works properly
Is perfect

1 Like