# ADC

## {{@218#bkmrk-open-iot-and-iiot-ga}}

Link to repositories:

- [C](https://github.com/Redisage/PAC-ESP32/tree/master/C_examples/adc)
- [MicroPython](https://github.com/Redisage/ESP32_Open_IoT_and_IIoT_Gateways_examples/tree/master/uPython_examples/adc)

### Description

This example shows how to use the ADC (analog-digital converter) located on the board. In the beginning of the program there is an ADC calibration performed. Thanks to that a raw reading can be converted to a corresponding voltage level.

### Console output

[![image.png](https://doc.redisage.com/uploads/images/gallery/2024-06/scaled-1680-/PTsimage.png)](https://doc.redisage.com/uploads/images/gallery/2024-06/PTsimage.png)