Blueair sense + motion sensor issue

Hi , I have a blueair sense +air purifier which should operate by waving your hand over the top , I got it apart and removed the board with the sensor on , it all seems fine and operates fine up to a distance of 6 - 7 inches away  but when it goes back behind the glass it does not work , any ideas anyone , here is a photo of the sensor , seem like 2 led's and a sensor , not quite sure how it works .

Block Image

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0