Turn led and pir scripts into classes
Update publisher/consumer names and to use sensors