> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/wireless-data-logger/logged-events.md).

# Logged events

What the WDL and Q48 logs record, and how DatScan Analyser turns them into counts.

Column B is the timestamp of when the event occurred. Column C describes what the event was. Our PIR detector has a relay output with relay closing on detecting target and opening when target has passed through the detector. Therefore you get a 1 state on closing of relay and 0 state when it opens. The presence of motion provides ID 1 (one state). The absence of motion for about 2s is the zero state. Our DatScan Analyser software ignores the 0 and divides the 1 count by two to get a more accurate rate of occupancy.

{% hint style="info" %}
**Applies to:** Wireless Data Logger (WDL), the older Q54 logger, and the Q48 Cellular Remote Data Logger.
{% endhint %}

## Events in the log

| Event           | Meaning                                                                                                                                                                                                                      |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Log Reset**   | This is always the first event; it shows that the log file has been reset purposely as opposed to the logger losing the data.                                                                                                |
| **1**           | The PIR has detected motion                                                                                                                                                                                                  |
| **0**           | The PIR has stopped detection motion                                                                                                                                                                                         |
| **Power Cycle** | This event is created on power up of the Q54 logger and is most probably a result of the batteries being changed.                                                                                                            |
| **Old Time**    | This is the time on the Q54 logger before the time was changed. This event is always followed by a New Time event. Possible reasons for a time change are: daylight saving or maybe an engineer is reconfiguring the device. |
| **New Time**    | This is the time the Q54 logger was changed to.                                                                                                                                                                              |

## Door switches

The input to Cellular Data Logger used on some installations is via a door switch on each cubicle but the logging will be the same. When the door opens you will get a 1 and on closing you will get a 0.

## Why there are more records than people

The WDL captures events for both person present and absent (arriving and departing) at the PIR. It may therefore appear to the installer that twice as many events have occurred as expected. Due to the characteristics of some sensors, particularly PIRs, there may be multiple readings for a single person passing the sensor. This can be removed by a filtering process. See [The counts look too high or too low](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/datscan-analyser/troubleshooting/counts-look-wrong.md).
