 
 	Console.begin();
 	xbeeSerial.begin(9600);
+
+	// Setup lock
+	pinMode(A0, OUTPUT);
+	setLockState(false);
+}
+
+void setLockState(bool locked) {
+	digitalWrite(A0, locked);
 }
 
 void loop() {

	curl.runAsynchronously();
}


	delay(1000);
	request('a');
	delay(1000);
	getData();
	set('b', block);
	setLockState(block == '1');
}

void set(char type, char value) {
	xbeeSerial.print(type);
	xbeeSerial.println(value);
}

void request(char type) {
