However, the BME280's pressure reading requires some local calibration, and I would simply like to add 3 to its returned pressure value. The code that gets the values from the sensor and prints them all to the console is...
Code: Select all
# Grab the latest enviromental values and print to the console (if open)
envi = bme.values
print(envi)Code: Select all
c.publish(conf['user']+"/feeds/pres", envi[1])Code: Select all
c.publish(conf['user']+"/feeds/pres", envi[1] + 3)So, can anyone advise please how I would go about simply adding 3 (or any value) to the env[1] variable please? Many thanks.