Putting the test output from the ground detection in a panel seems to give better results. I guess the watched varriables aren't updating quick enough.