HI there,
Lots to unpack here. Do you have this on a breadboard?
if you are using or trying to use parasitic power for the Sensor (it does support that) only a resistor is required.(it uses the GPIO to power the sensor) I would advise also to use Google Images for your searches on Schematics and Such, Glad to see you doing it but know this…AI is great tool for assisting and clarifying. It is NOT a designer… You have been Warned.
If you already have code and want a third EYE then, yes… If you have a specific Question or position on a Technical aspect of a circuit YES, BUT to have it design one NO. it’s named “CHAT” GpT for a reason. Do not get out ahead of your ski’s so to speak.
Meanwhile.
Look at the Demo I have on here that uses the DS1820B , another thing You are maybe sampling WAY to fast. That sensor is DOG slow on Delta of temp change… FYI. you can see it in the video how slow it responds.
Honestly Bro, the problem is between the keyboard and the floor, but just do the basics first and set one up on a breadboard and Verify your hardware tests. It sleeps and wakes up fine. The RC stuff is Already on the Xiao BTW so no need in adding anything else.
- Power supply
- Connections
- Test Code
Power supply , needs to be in spec with the chips requirements and is the number one on the list for a reason. Connections should be testable(ie.breadboard or socket first) solid not if you move it or breath on it the device stops working. Test Code , NOT your app code but code that tests things, (yea like a BLINK code) Get the basics working and solid then move to the App design. If any of theses first three are skimped on. You will get out what you put in.
HTH
GL PJ