Security
Secure data upload to openSenseMap
Information on connecting and programming the sensors, Bees and other components
The HDC1080 is a digital humidity and temperature sensor. The sensor has a high accuracy and a very low power consumption and is therefore ideally suited to the senseBox. The sensors are calibrated ex works and can be used directly.
#include "SenseBoxMCU.h"
#include <Adafruit_HDC1000.h>
#include <SPI.h>
HDC1080 hdc;
void setup(){
Serial.begin(9600);
hdc.begin();
}
void loop(){
Serial.print("Temperature: ");
Serial.println(hdc.getTemperature());
Serial.print("Humidity: ");
Serial.println(hdc.getHumidity());
}
In Blockly the sensor can be read out via the following block:
In the block you can choose between the different parameters of the temperature and humidity sensor: