Motion Detection Complete

Altered pir sensor sm to fix motion detection