implementing sensor