Added IR to sensor model and fixed all compile warnings.