#include <LiquidCrystal.h>
#define red 11
#define green 12
#define blue 13
float lightIntensity;
LiquidCrystal lcd (13,12,11,10,9,8);
void setup() {
// put your setup code here, to run once:
pinMode(red, OUTPUT);
pinMode(green, OUTPUT);
pinMode(blue, OUTPUT);
Serial.begin(9600);
}
void loop() {
lightIntensity = analogRead(0);
float temp = lightIntensity /2.0 -50.0;
Serial.print(lightIntensity);
lcd.setCursor(0,0);
lcd.print(temp);
delay(1000);
// Serial.println(lightIntensity);
// if(lightIntensity > 500){
//
// //if(digitalRead(light) == HIGH){
// digitalWrite(red, LOW);
// digitalWrite(green, HIGH);
// //delay(3000);
// }else{
// digitalWrite(red, HIGH);
// digitalWrite(green, LOW);
// }
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}