Added code for transmitter and alarm