private void DeinitSensors() { if (bmp180 != null) { bmp180.Dispose(); bmp180 = null; } if (bme280 != null) { bme280.Dispose(); bme280 = null; } if (dhtSensor != null) { dhtSensor = null; dhtPin.Dispose(); dhtPin = null; } }