Our Android phone is by default equipped with multiple sensors, e.g., accelerator sensors, magnetic field, photo light detector, noise level sensor, etc. I have an unused LG G4 which I turned into a sensor device. To convert the sensor readings into MQTT message, Sensor Node Pro is used.
![](https://i1.wp.com/img9.androidappsapk.co/poster/6/f/1/com.mscino.sensornode.pro_1.png?w=640&ssl=1)
Telegraf is embedded to the MQTT server to transfer the messages to InfluxDB. I used Grafana to visualize the readings.