Substrate moisture sensor