im very new to Arduino and just wrote this code to compare the readings of 2 LDR's and rotate motor accordingly but the motor moves to fast i was wondering how i could slow it down.
You could use gears or analogWrite
try using analogWrite with a value from 0-255
What motor driver are you using?
For your future posing:
Images of code are not very useful as a rule. Please read the forum guidelines to see how to properly post code and some information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in a code block.