how to detect a PI