A temperature-independent displacement sensor is demonstrated using a chirped fiber grating and a specially designed cantilever. The 3-dB bandwidth of the chirped grating changes linearly with displacement and is independent to the temperature. Linear displacement response of 37.063mV/mm was obtained. By measuring the reflected light from the chirp grating, the displacement can be monitored directly. The sensor has potentially low cost due to its simple structure.