Warped wafers can affect device performance, reliability, and linewidth control in various processing steps. We propose in this paper an in situ fault detection technique for wafer warpage in lithography. The use of advanced process control results in very small temperature disturbance making it suitable for industrial implementation.