the whole schematics looks
the whole schematics looks upside down for me… if you’re robot is working just post it… I’m curious… I don’t want to build one if it is not working… anyway black surface will give a value between 0 and 5V… and if white surface is detectected will give you 5V exactly… you’ll need an analog digital converter here