//I used some code found in a Nerdkits tutorial. //I based my code off of the temerature sensor project. //If you haven't heard of Nerkits, you should check them out! // http://www.nerdkits.com/ #define F_CPU 14745600 #include #include #include #include #include #include void adc_init() { ADMUX = 0; ADCSRA = (1<