I have attached the schematics for my circuit.Instead of 2N222 am using 2n577.On taking load through emitter i am getting zero volt.Also instead of grounding the emitter leg i am giving it to my opamp ,i am getting 1.5V as i/p when light is falling on photo-transistor whereas .5v when no light is falling on it.I am using IR as light source.