Skip to content

carljnicholls/dht22-reader

Repository files navigation

DHT22 Reader

This Service is part of a collection running on a Raspberry Pi. It reads from a DHT22 sensor periodically and and publishes the response to a MQTT broker.

Run

From root

  1. Install dependencies: npm i
  2. Build: tsc -b
  3. Set Environnement settings by either creating /.env from /.example.env or set with run command.
  4. Run: node .\build\src\main.js