Added a LED functionality to the arduino code. If cosm responded with error or didn't respond LED blinks otherwise the LED is on