Added Threshold to reduce noise of sensors