For a general rule, compact fluorescent bulbs are NOT compatible with motion sensors or dimmers.
There are exceptions for dimming: you must get a bulb AND ballast AND dimmer which are ALL rated for dimming. The bulbs will more expensive, and the dimmer will run over $50.
Many simple motion sensors like you probalby have work by "stealing" a tiny amount of current when the bulb is off. An incandescent bulb pretty much ignores this. Flourescents tend to glow or flicker. You can get a compatible motion sensor....it will set you back about $50.