I'm a beginner trying to go further than the example sketches in the Adafruit library (which I was able to run correctly).
I would like my device (placed outside), to send me readings every 30min, as well as to Thingspeak. I've read the datasheet for the sensor, particularly the different sampling modes, and I'm not sure if I need to keep updating the values from the sensor continuously in the loop() function.
float temp, hum, pres;
setup(){
// get things ready, etc
}
loop(){
temp = bmp.readTemperature();
temp = bmp.readTHumidity();
pres = bmp.readPressure() / 100;
if (30minHavePassed){
sendToMe();
sendToThingspeak();
}
Or otherwise only call the functions and read the sensor when 30min have passed:
There's no need to read data you don't use or save. Alternatively, you could choose to do averaging or trending, allowing for things like sending the most recent reading with a marker for 'rising' vs 'falling'. This is beyond your stated simple implementation, but is a logical extension.