A bearing comprises a Bragg grated optical fiber to measure one or more parameters of the bearing such as load, temperature, accelerationvibration and identification. The star gear includes an annular spacer ring disposed at one end of the star gear. At least one LED chip is placed on each step on a metal film and the metal layer directly above is formed of a corresponding shortening or recess for mounting an LED. The input device generates an input signal in accordance with the intensity of the light to which at least one light sensor of the input device is exposed.