Ensure we provide the highedt sample in every period
Serialize data in JSON format
Correct escaping of quotes
fix time maths (and a type in the JSON)
A PIR driver for the Adafruit PIR detector (also tested with an unbranded cheaper detector)