A humidity and temperature optical fiber sensor based on a long-period grating (LPG), which can provide simultaneous response to both magnitudes, is proposed and demonstrated via experiments. Previously, the LPG was fully coated with humidity sensitive nanostructured polymeric thin films by the Layer-by-Layer (LbL) nano assembly technique. Hence the surrounding refractive index was changed, so provoking wavelength shifts of the attenuation bands of the transmission spectrum. This fully coated LPG was exposed to relative humidity (RH) and temperature tests, varying from 20% to 80% RH and from 25 ºC to 85 ºC, respectively. Then, half of the LPG coating was chemically removed and this results in the splitting of the main attenuation band into two different contributions. When this semi-coated LPG was also exposed to RH and temperature tests, the new two attenuation bands Revised Manuscript lick here to view linked References presented different behaviours for humidity and temperature. This novel dual-wavelength based sensing method enables the simultaneous measurement of RH and temperature using only one LPG.