The optical sensor can be installed next to the glass as mentioned in the linked thread.