more work on reimplementing sensor