Changed sensor logic