A rotation sensor of a bearing with a rotation sensor comprises a sensor
housing having a sensor and mounted on an outer race, and a sensor target
ring having a detector sensed by the sensor and separated from an inner
race, in which a setscrew is provided so as to be displaced to a first
position between a through-hole formed in the sensor housing and a screw
hole formed in the sensor target ring or a second position in which it is
held in either one of recesses.