 unsigned long timer1 = 0;
 unsigned long timer2 = 0;
 
-float getTemperature() {
+int getTemperature() {
 
   int a = analogRead(temperatureAnalogPin);
   int B=3975;                  //B value of the thermistor

    Serial.print("}\n");
   
  }

  // getRotaryData
  getRotaryData();
  
  /*
   * Read from serial

#include <math.h>
#include <json_arduino.h>

// digital pin
const int relayPin =  2;      // relay
const int ledPin =  6;      // the number of the LED pin
const int buttonPin = 8;     // the number of the pushbutton pin
const int lcdPin1 =  11;      // LCD
const int lcdPin2 =  12;      // LCD

// analog pin
const int temperatureAnalogPin = 0;
const int rotaryAnalogPin = 1;

SerialLCD slcd(lcdPin1,lcdPin2);


int requestedTemperature = 0;
float temperature = 0;

const int celsius = 1; // 1 celsius / 0 farheneit, but has to be handled thought
const int minTemperature = 15; // means OFF
const int maxTemperature = 30; // means VERY HOT

int rotaryValue = 0;

int lastStatus = LOW;
int lightStatus = 0;         // variable for reading the pushbutton status
