A Pb2+ ionic gate with enhanced stability and improved sensitivity based on a 4'-aminobenzo-18-crown-6 modified funnel-shaped nanochannel.