Arduino Nano 33 – DS18B20 Sensor doesn’t work with Nano 33 BLE

  arduino, bluetooth-lowenergy, c++, crash, temperature

I have a problem with the temperature sensor connected to ArduinoBLE, I am streaming on the ble the temperature (DS18B20 Sensor) read from the sensor but after some minutes the ble disconnects and the streaming is being stopped, I have other sensors streammed with ble ad I don`t have problems like this, I think the OneWire library is the problem, can you confirm please? Can I follow alternative paths?

Because I tried to stream only a random number and this works, but when I am reading the sensors and return the temperature to the ble after some minutes all crashes…

I am using:

Arduino nano 33 ble iot,

Visual studio code – IDE,

DS18B20 Sensor,

#include <DallasTemperature.h>
#include <OneWire.h>

#include <ArduinoBLE.h>

Thank you all!!

Source: Windows Questions C++