parse ground sensor states
removed old code