incremental sensor code updated, USING MM!