Implementation of temperature measurement, saved into SQLite