An analyte detector is disclosed. The analyte detector includes a
substrate having a surface, a self-assembled monolayer comprising a
plurality of molecules bonded to the surface, the molecules having a
structure (I) defined herein, and a liquid crystal layer having a
plurality of liquid crystal molecules aligned on a top surface of the
self-assembled monolayer. The liquid crystal molecule includes a diol
moiety that interacts with the molecule having a structure (I). Methods
of detecting an analyte are also disclosed.