Perform sensor test 3 times. Mimicks the python code