error code ir positioning camera df robot to esp32

I'm testing using a df robot to determine the camera position using esp32. I used the program in robot df and adapted it to esp32 but when in the serial monitor, the program displays 1023 continuously. what is the solution?
ESP32 / ESP8266 ProjectsESP32 TutorialsESP8266 TutorialsESP32 / ESP8266 ProductsView Arduino ProductsMore Arduino Related ProjectsArduino TutorialsIoT ProjectsIoT Products