I have a BME280 environment sensor that returns a tuple in a variable called envi.
envi = bme.values
print(envi)
returns all three values of temp, pressure and humidity.
If I print(envi[1])
I get a string returned for pressure such as '1029.23hPa'
As this returned value needs calibrating ever so slightly, I simply need to add 3 to it, before publishing it via MQTT to Adafruit via...
c.publish(conf['user']+"/feeds/pres", env[1])
What would be the correct syntax to add 3 to env[1] please? Is there a way I can do this?