Tamm plasmon polariton (TPP) resonance is observed in the band gap of 1D photonic crystal coating with metals. TPP produces near-zero reflection at the resonance wavelengths, resulting in dramatic phase changes. The sharp variations in the phase provide an useful transduction mechanism to achieve optical sensing with higher sensitivity. In this work, palladium is used as the metal film which could change the optical and structural properties when hydrogen is loading. Besides, the Mach-Zehnder interferometer is built to generate the interference patterns, which can visualize the phase change when exposuring to the hydrogen. In the modeling, we use the matlab to simulate the interference pattern, which has the great correspondence to the experiment results.