Maybe better to use a const float (or a #define) at the beginning of the sketch so one can change it easily.
I have a BME280 and a BMP180 online but they differ of only 1mBar. The BME280 is attached to a nodeMCU and is this one that I will use with your sketch.