Proximity sensor for around 1inch and glass

I expect that the glass will reflect enough to be sensed but I am not sure. You can get the QRD1114 for well under $3 so you should probably just give it a try.