Step counter sensor - initial code.