sensor side final version