In this thesis differenct optical fiber gratings are used for sensor purposes. If a fiber with a core concentricity error (CCE) is used, a directional dependent bend sensor can be produced. The CCE direction can be determined by means of diffraction. This makes it possible to produce long-period gratings in a fiber with a CCE direction parallel or perpendicular to the writing direction. The maximal bending sensitivity is independent on the writing direction, but the detailed bending response is different in the two cases. A temperature and strain sensor, based on a long-period grating and two sampled gratings, was produced and investigated. It is based on the different temperature and strain response of these gratings. Both a transfer matrix method and an overlap calculation is performed to explain the sensor response. Another type of sensor is based on tuning and modulation of a laser wavelength. It is shown that it is possible to tune and modulate a DFB fiber laser with both strain from a piezoelectric transducer and by temperature through resistive heating of a methal film. Both a chemical deposited silver layer and an electron-beam evaporation technique has been investigated, to find the most reproducible method. Such a laser can be applied for gas monitoring and it can be stabilized by locking it to an absorption line. The locked laser has a stability of ~2 MHz, which makes it suitable as a wavelength standard in the 1.5 um telecommunication band.