Inverting, single-supply comparator not working as expected
You've tied the collector of the NPN output to ground and you are trying to take an output from the emitter - you have this the wrong way round. Tie emitter to ground and use a pull-up on the collector like most folk (who still use this ancient part): -