Hello, I am using an Arduino Uno for a school project, and have only begun to learn how to program it.
I am using this temperature sensor to gain temperature data. The sensor uses a special library and I have no idea how to access the readings from the device. I would greatly appreciate any help with getting the reading into a variable so I can work with it in my if statements. I will attach my code.
If you are curious, the project will modulate the power to a water pump (or just use a relay for binary control) to maintain a desired water temperature. the water is being used to cool industrial parts. I understand the code may be inefficient, but I am not here to fix the code itself, I’m just trying to get a better understanding of how to read digital thermometers.
Thanks in advance,
EDIT: If you can point me to a tutorial on this, that would be cool as well, I just havent managed to find one.
Draft_of_complete_code_1.1.ino (2.92 KB)