The schematic may be incorrect, as it seems unlikely that the relay would energise in an emitter follower configuration, where it'd have approximately 2.6 volts across its coil in the "on" state. Perhaps the relay should be between 5v and the collector of the transistor. Some relays are sensitive enough, though, so I'm not sure.