Although multiple methods have been developed to detect metal cations, only a few offer sensitivities below 1 pM, and many require complicated procedures and sophisticated equipment. Here, we describe a class of simple solid-state sensors for the ultrasensitive detection of heavy-metal cations (notably, an unprecedented attomolar limit for the detection of CH(3)Hg(+) in both standardized solutions and environmental samples) through changes in the tunnelling current across films of nanoparticles (NPs) protected with striped monolayers of organic ligands. The sensors are also highly selective because of the ligand-shell organization of the NPs. On binding of metal cations, the electronic structure of the molecular bridges between proximal NPs changes, the tunnelling current increases and highly conductive paths ultimately percolate the entire film. The nanoscale heterogeneity of the structure of the film broadens the range of the cation-binding constants, which leads to wide sensitivity ranges (remarkably, over 18 orders of magnitude in CH(3)Hg(+) concentration).