This is my first BLE Sense. I've hit a couple of problems with it, but I'll just focus on the Humidity in this post.
My activation of the humidity sensor is as basic as it gets.
#include "Arduino_HTS221.h"
float humidity = 0; //Humidity of room
void setup() {
Serial.begin(115200); //Start Serial USB
//Start humidity and temp code
if (!HTS.begin()) {
while(1);
}
//End humidity and temp init code
}
void loop() {
humidity = HTS.readHumidity();
String str;
str = "Humidity: " + String(humidity,3) + ";";
Serial.print(str);
delay(1000);
}
When I first got the BLE Sense yesterday, the reading was 0%.
This morning it was reading 5%, and now it's reading -5%.
What am I doing wrong? Or is this thing a dud?