An analog to digital converter (ADC), convert a voltage into a digital value (integer) between 0 and ((2 power x)-1).
If the ADC is a 10 bits converter, the integer range will be between 0 and 1023.
If the ADC is a 16 bits converter, the integer range will be between 0 and 65535.
ADC are used to connect components that only have analog output (voltage), like an analog ligth sensor (Photo cell, CdS photoresistor) or an analog temperature sensor like the TMP36.
Source Code:
We tested the MCP3008 which offers 8 10 bits analog to digital converters. The MCP3008 uses the SPI protocol.
The temperature/humidity sensors DHT11 and DHT22 are not analog sensors and use a special digital protocol that is not supported by Nusbio.