 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <avr/interrupt.h>
+
 
 extern "C" {
 

void setup() 
{

	pinMode(photoPin, INPUT);			// open pin for reading input
	pinMode(valvePin, OUTPUT);
	Serial.begin(9600);					// initialize serial data stream

}





	// int prevPhotoState = photoState();
	// delay(200);								
	// // !! REMOVE DELAY !!
	// if (photoState() != prevPhotoState) {

	// 	sendSensorData();

	// }


	if (Serial.available() > 0) {
