Introducing tertiary amine monomers into holographic sensors containing phenylboronic acids gives greatly improved selectivity for glucose.