IR sensing for threshold and arm moving