My sketch is reading the sensor HTS221 of temperature/humidity and populating characteristics of the ble to be read externally.
Works properly when the nano 33 ble sense is connected with the Arduino IDE. I can see the values of temperature and humidity trough the serial monitor and trough the BLE Scanner 4.0 (IOS App)
To allow the sketch to run powered by a power supply (5V), I had to comment the line "while (!Serial);" disabling the dependences of a serial connection. Connected to a power supply, the sensor HTS221 of the nano 33 ble sense reports the temperature and humidity as 0 (zero). Another sensor (ds18b20) connected reporting external temperature continues reporting the temperature correctly.
When back connected to IDE everything works perfectly again.
Any idea how to solve this issue?