Security
Secure data upload to openSenseMap
Information on connecting and programming the sensors, Bees and other components
This sensor measures air pressure and temperature and is based on the Bosch BMP280 sensor.
#include "SenseBoxMCU.h"
#include <SPI.h>
BMP280 bmp_sensor;
void setup() {
Serial.begin(9600);
bmp_sensor.begin();
}
void loop() {
Serial.print("Pressure: ");
Serial.println(bmp_sensor.getPressure());
Serial.print("Temperature: ");
Serial.println(bmp_sensor.getTemperature());
Serial.print("Altitude: ");
Serial.println(bmp_sensor.getAltitude(1000));
}
In Blockly the sensor can be read out via the following block:
In the block you can choose between the different parameters of the air pressure/temperature sensor: