Well, wrapping the light almost entirely in tin-foil has partially solved the problem. The speed sensor now works but the cadence sensor still doesn't work. Since I can't see the cadence sensor in the dark, it isn't that big of a deal. Glad the speed sensor is working to record my miles.