fix some warnings, complete infrared sensoring, ad problem remains