added init scripts for door sensor
modified code to use a fifo instead of a direct socket