I would use a breakbeam detector like this. Will work with any color pet, white, black, or spotted.
or