An electrochemical sensor for nitrobenzene using π-conjugated polymer-embedded nanosilver.