Internet of things (IoT) based solar tracker

I’m experiencing a problem where automatic mode constantly flipping back and forth between manual and automatic. The placement of the motor is delayed as a result. The circuit appears to be working properly, and the ldrs on pins A2, A3, A4, and A5 are providing accurate readings. Are there any issues if I don’t use the solar panel? Have you have any recommendations? Also, all data types are present in real-time data, but LDR sensors are not displayed while viewing data from the previous hour.