Geofencing using circle shape

Have you? Then why are you posting an example using the call Polygon1.DistanceToPoint?
You should be using CIrcle.DistanceTo Point or try something else.

How about Location sensor (ringed fence / circular ringed fence) - #2 by SteveJG ?