Input pins should never be left unconnected as their voltage state may become unpredictable and they can give unreliable results and operation. Output pins on the other hand are relatively safe to leave floating as these pins are driven by some voltage with in the IC itself. The ALRT pin is an open-drain active-low output, but it is recommended in the datasheet to GND it when not used.