Developing receptor molecules for recognition of ions having biological/environmental significance is an area of significant importance. Among various cationic analytes, detection and recognition of heavy and transition metal ions like, Hg2+ and Cr3+, and among anionic analytes adenosine triphosphate (ATP) recognition have been discussed due to their paramount interest owing to their participation in various physiological processes. These chemosensors further used for the detections of these analytes in living cells. Further, in certain cases optical responses of these chemosensors in presence of different combinations of various ionic inputs could be used for constructing different simple and complicated Boolean logic gates at molecular level.