Analog sensors Real-Time logging in pixhawk

Hello All,

I want to use some analog sensors connected to an Arduino and then connect the Arduino to the pixhawk by i2c to get those values in dataflash logs and to in mavlink messages to store them in live in the ground station.

Thank You.