Category : arduino-uno

I have a lot of variables (3×12) that I have set up under a structure: struct Tracking { String Title; BoolArray n24hr; bool State; unsigned char Days, Weeks; uint16_t Minutes, TotalMinutes, Daily, Weekly, Monthly, n7d[7], n4w[4]; } Components[3]; I also have code that performs basically the same thing 3 times but on different "levels", e.g. ..

Read more

This is the part of the code with the error: int value = analogRead(LM351); float Temperature = value * 500.0 / 1023.0; lcd.setCursor(6,0); lcd.print(Temperature); lcd.setCursor(11,1); int value1 = analogRead(LM352); float Humidity = value1 * 500.0 / 1023.0; lcd.setCursor(10,1); lcd.print(Humidity); if (Temperature > 24){ digitalWrite(motor, HIGH); digitalWrite(LedRed, HIGH); digitalWrite(LedGreen, LOW); lcd.print(""); } else { digitalWrite(motor, LOW); ..

Read more