sensor side final version1