If the simulation model is not present then the software will be unable to simulate the whole circuit. In order to simulate the behaviour of any circuit or any system in any of the simulation software it is important that the simulation models of all of the electronic components present in the circuit should be present in the library of the software. Let us start with simulating the LDR sensor in the Proteus.
we will also show how to connect them to be used with an another analog pins, which gives us an ON/OFF state instead of a value. The analog pin will read values between, so it converts the analog signal to a digital representation – called Analog Digital Converter (AD or ADC) into the Arduino.
When connecting an LDR to Arduino, they would automatically go for one of the Analog pins, and analog pins are read their value (Val = analogRead(analogPin) Which used(A0-A5) and Val is variable in which analog value returned by the function is saved.