I wanted to create a comparator circuit with UA741CN which is only comparator/op-amp I have in my junk right now. I wanted to use it with 5V but no matter what is inverting ref voltage is giving any voltage to non-inverting output gives me always high as output. When I set the power supply to the 8V it works as it should be. Even in 7V it is acting weirdly as i said so. What might be the problem here?