added motion sensor interface and GPIO based impl