A light-driven photoelectrochemical sensor for highly selective detection of hydroquinone based on type-II heterojunction formed by carbon nanotubes immobilized in 3D honeycomb CdS/SnS2.