Code Monkey home page Code Monkey logo

ard-room-temp-humidity-sensor's Introduction

Arduino Room sensor

Using an Arduino to monitor the temperature and relative humidity in a room, and pushing that data to a Prometheus Pushgateway.

Hardware

  • Arduino Nano 33 IoT
  • Adafruit HTU21D-F Temperature & Humidity Sensor
Device Price Usage
Arduino Nano 33 IoT 20 € Collecting the data and sending it to server
Adafruit HTU21D-F Temperature & Humidity Sensor 10 € getting measurements
Raspberry Pi 3 Model B 45 € Server fr Prometheus, Pushgateway and Grafana

Arduino Libraries

Library Version Usage
Adafruit_HTU21DF_Library 1.1.0 Getting data from sensor
ArduinoHttpClient 0.4.0 Client for making push requests
WiFiNINA 1.8.13 Connecting to WiFi
And all requirements of the libraries above

Requires config.h

This requires a config.h containing the secret values for your WiFi and Pushgateway server info.

// define wifi SSID and password to connect
#define WIFI_SSID "<SSID>"
#define WIFI_PASSWORD "<WPA2>"

// make sure to reserve a static ip address for your Pushgateway
#define PUSHGATEWAYIP "<PUSHGATEWAY IP>" // ip of the server running the Pushgateway
#define PORT 9091 // standard port of Prometheus Pushgateway

Replace <> with the corresponding data and remove the <>.

ard-room-temp-humidity-sensor's People

Contributors

c-jaenicke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.