---
title: Keep every reading of a device in a report
project: IoT Platform
version: 1.0
section: recipes
language: it
translation: missing
license: Total.js Enterprise
url: https://totaljs.es/docs/it/iot/1-0/recipes/keep-raw-readings/
updated: 2026-11-20T06:56:29.450Z
---

# Keep every reading of a device in a report

> Store each message of a driver in its own table and list it in a report.

The statistics of a sensor keep the minimum, maximum and count of each interval. When you need every single reading, for example to check a device, let the driver write it to its own storage table and read the table in a report.

1. Ask the author of the driver to add a storage table and to insert each reading into it, as described in [Storage](../../development/storage/). For example, a table `readings` with the columns `sn` and `temperature`.
2. Install the new version with **Edit source-code**. The platform creates the table.
3. Find the name of the table with a report preview. Open **Reports**, select **Create**, write this query and select **Preview data from SQL command**:

```sql
SELECT table_name FROM information_schema.tables WHERE table_schema = 'storage'
```

4. Replace the query with one that reads the table, using the name you found:

```sql
SELECT sn, temperature, dtcreated FROM storage.db1yr6f1treadings ORDER BY dtcreated DESC
```

5. Set **Map fields** to `sn=Serial number, temperature=Temperature, dtcreated=Received`, give the report a name and select **SUBMIT**.

The report lists every reading with the time it arrived. Download it as CSV or XLSX from the report.
