As noted above, the hydrogen gas sensors and hydrogen-activated switches of the present invention are preferably fabricated from arrays of metal nanowires preferably composed of any metal or metal alloy that absorbs hydrogen including palladium and its alloys, and any other metal or metal alloy having a stable metal hydride phase.