Create AD2SmartThings Device Type

Arduino code for AD2SmartThings.  Paste this code into a sketch in the Arduino IDE and transfer to the ArduinoMega.  Note: requires that the Timer and ArduinoMega ThingShield libraries have been imported into the Arduino IDE.