main.h deleted and sensor fixed

Not needed; scrapped