Add DS18B20 temperature sensor support

This commit is contained in:
root
2026-06-03 01:11:46 -06:00
parent f9fe949bb9
commit c2248a5f5a
3 changed files with 98 additions and 9 deletions
+10 -4
View File
@@ -1,13 +1,19 @@
#pragma once
struct SensorData {
float fridgeZone1 = 36.0;
float fridgeZone2 = 12.0;
float rearSeat = 78.0;
float outsideAir = 88.0;
float fridgeZone1 = -127.0;
float fridgeZone2 = -127.0;
float rearSeat = -127.0;
float outsideAir = -127.0;
bool fridgeZone1Online = false;
bool fridgeZone2Online = false;
bool rearSeatOnline = false;
bool outsideAirOnline = false;
};
extern SensorData sensors;
void initSensors();
void updateSensors();
void printSensorAddresses();