Try to get the value of the sensor 10 times.