A molecular thermometer utilizing the different pi-stacking of B- and Z-DNA was designed. Aminopurine, which is a fluorescent probe for charge-transfer processes, was introduced into B- and Z-DNA and the emission monitored. Z-DNA showed a marked increase in fluorescence compared with B-DNA, with the fluorescence intensity correlating linearly and reproducibly with temperature.