We investigated a humidity sensor based on a polyimide-coated side-polished optical fiber. The polyimide film absorbed moisture, causing the resonant wavelength of the sensor to shift to a longer wavelength owing to the changes in the optical properties of the film. The experimental results showed that the resonant wavelength of the device shifted by 17–18 nm when relative humidity changed from 30% to 90%.