A simple neutral fluorescent sensor based on pyrazolo[1,5-a]pyrimidine exhibited a unique selectivity for indium(III) ion (In3+) over various other metal ions with dramatic fluorescence response in acetonitrile.