Added a LED functionality to the arduino code

If cosm responded with error or didn't respond the LED blinks otherwise the LED is on