When you are logging or publishing data (e.g. to an MQTT), typically a timestamp is added. I have build a small distance sensor based on an Arduino and a HC-SR04 ultrasound sensor.
I am using this together with an D1 Mini Arduino including a WiFi module.
Every second I