Range Check Python Example Using Rpi5