firmware wip - prepare to return raw aout value of soilmoisture and water level

This commit is contained in:
Marcus 2024-05-15 19:34:36 +02:00
parent 01c410c31d
commit 71b846c5b0

View file

@ -32,7 +32,7 @@ unsigned int readI2CRegister16bit(int addr, int reg) {
*
*/
int getWaterlevel() {
int getWaterlevel(bool returnRAW = false) {
/*
* waterlevelRAW
@ -107,11 +107,10 @@ float getTemperature(byte tempSensor) {
}
float getHumidity() {
float humidity = dht.readHumidity();
return humidity;
return dht.readHumidity();
}
int getSoilmoisture(byte moistureSensor) {
int getSoilmoisture(byte moistureSensor, bool returnRAW = false) {
/*
* moistureSensor
* ==============