Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for Raspberry Pi Data Logger | SHT31, DS3231 & Timestamped CSV

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

Raspberry Pi Data Logger | SHT31, DS3231 & Timestamped CSV

A Raspberry Pi can pair SHT31 temperature and humidity readings with timestamps from a DS3231 clock and store each sample as a CSV row.

Understand the concept

The key idea

Consistent timestamp conventions and units make the file interpretable after it leaves the device. An invalid sensor read should remain distinguishable from a real zero in the data.

What to remember

  • Record a timestamp for each measurement.
  • Make missing or invalid samples explicit.
Pause & think

Check your understanding

What does the real-time clock contribute when network time is unavailable?

Show the explanation

It provides a local time reference that can continue across power cycles when its backup supply is functioning.