An object is to provide a semiconductor device in which stored data can be retained even when power is not supplied, and there is no limitation on the number of write cycles. When the brake pedal is pressed, an intended brake effort may be determined and the actual deceleration of the vehicle may be calculated. A material of the lens barrel includes a thermoplastic with a melting point higher than soldering temperature. The resulting gap or clearance helps prevent damage to the optical disc caused by contaminants on the flat surface or by defects in the flat surface. Indicia is applied to the lid for indicating a distance between the receptacle and a predetermined point on the golf course. Coordinates of the retro-reflective object are determinable by triangulation using the two angular positions.