Fix the last sensor not working