Hi, why not use a small transformer 2XX V to e.g. 6V , a half wave recifier and a kind of limiter to save PIC AD-Port. one benefit is that you don4t have to deal with deadly high voltages in your circuit. Kind regards Stefan