Default [Q] Auto wake/sleep no work

I purchased a case for my Note 8.0 that says it has the auto wake/sleep function when you close the cover but it dosen't work, do I have a bad case or a bad Note(refurbished)? Where's the sensor, is it magnetic or light activated. Thanks