A D-type optical fiber sensor with a thin gold film is proposed. From the results of simulations, we can achieve the best sensitivity of the D-type optical fiber sensor by choosing suitable parameters, e.g., the thickness of the thin film layer of gold an