Fabrication methods for environmentally hardened sensors