
The ADC reads the changing voltage and converts the analog signal from 0 to 1023 and communicates this value to the machine. In Arduino Uno, the pins A0 to A5 are used to take the input values of analog signals and these pins have a pre-installed ADC (analog to digital converter) which converts the analog signal to digital so it can be read by the machine. In Arduino, there is a built-in function that takes the analog values as input from its pins that are dedicated to the analog values. What is the analogRead() function in Arduino In this write-up, the analogRead() function is explained in detail with the help of which we can take analog input values in Arduino. These types of values are known as analog values.

It is not restricted that the room temperature should be 0 or 1. In the above discussion, we gave an example of room temperature, the room temperature can be 35 degrees or 10 degrees.

But before understanding the analogRead(), we have to understand what is the analog value? The analog value always varies from negative infinity to positive infinity and it is not restricted to only 0 and 1 like the digital values. These values can be read by the Arduino from its specific pins and these values can be used for further use. Sometimes we have to take input of the analog values from the sensors such as to find out the temperature of the room, the input values are in analog.
