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.
Telegraf is embedded to the MQTT server to transfer the messages to InfluxDB. I used Grafana to visualize the readings.