# Cube Flight Controller / ADC measurement

**URL:** <https://discuss.px4.io/t/cube-flight-controller-adc-measurement/15332>\
**Category:** PX4 Autopilot\
**Created:** [February 24, 2020, 8:30am UTC](https://discuss.px4.io/t/cube-flight-controller-adc-measurement/15332 "2020-02-24T08:30:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Finwood](https://discuss.px4.io/user_avatar/discuss.px4.io/finwood/32/4751_2.png) [@Finwood](https://discuss.px4.io/u/Finwood)\
**Post date:** [February 24, 2020, 8:30am UTC](https://discuss.px4.io/t/cube-flight-controller-adc-measurement/15332/1 "2020-02-24T08:30:35Z")

</div>

I would like to use the [Cube Flight Controller](https://docs.px4.io/v1.10/en/flight_controller/pixhawk-2.html)’s ADC port to measure a voltage from an external analog temperature sensor and have PX4 log it to the SD card.

 ![Cube-ADC](https://discuss.px4.io/uploads/default/original/2X/4/48c1f33dfa37a7ac2ed910454d310d6777cf6467.jpeg)

In the [datasheet](http://www.hex.aero/wp-content/uploads/2016/07/DRS_Pixhawk-2-17th-march-2016.pdf) the ADC port’s signal pin is named “Pressure sense in”, which (according to the [schematics](https://github.com/proficnc/The-Cube)) is connected to the processor’s `PC5`, or `ADC12_IN15`.

Where (in PX4) can I find the reading of that pin, and how can I enable logging its value?

---

<div class="post-metadata">

**Author:** ![SalimTerryLi](https://discuss.px4.io/user_avatar/discuss.px4.io/salimterryli/32/5704_2.png) [@SalimTerryLi](https://discuss.px4.io/u/SalimTerryLi)\
**Post date:** [February 24, 2020, 9:20am UTC](https://discuss.px4.io/t/cube-flight-controller-adc-measurement/15332/2 "2020-02-24T09:20:30Z")

</div>

As adc\_report is published through uORB, so you can simply log it with [this instruction](http://dev.px4.io/master/en/log/logging.html)  
You need to add `adc_report` in your `logger_topics.txt`.
