This is my first arduino project it is a reef controller and it seems to have bad tempurture resolution to me and I wanted to know if this seems normal if my temp is 78.12 deg F the next step would be 78.42 each increment is about .3 degrees is this right I was hoping for better
here is the code I cropped most of my project so it would be easier to find a problem hopefully I didnt take anything out needed
#include <SimpleTimer.h>
#include <EEPROMAnything.h>
#include <EEPROM.h>
#include <LiquidCrystal_I2C.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <Wire.h>
#include <Button.h>
SimpleTimer timer;
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
LiquidCrystal_I2C lcd(0x20, 4, 5, 6, 0, 1, 2, 3, 7, NEGATIVE);
DeviceAddress Sump;
void setup(void)
{
lcd.begin(20, 4);
sensors.begin();
(!sensors.getAddress(Sump, 0));
sensors.setResolution(Sump, 11);
}
void printTemperature(DeviceAddress deviceAddress)
{
hightempsp = (lowtempsp + 00.10);
sump = sensors.getTempF(deviceAddress);
if ((sump < lowtempsp) && (sump > 45)) digitalWrite(heaterpin, HIGH);
if (sump > hightempsp) digitalWrite(heaterpin, LOW);
if (sump > tempmax) tempmax = sump;
if (sump < tempmin) tempmin = sump;
}
void loop(void)
{
sensors.requestTemperatures(); // Send the command to get temperatures
printTemperature(Sump); // Use a simple function to print out the data
}