Reading "ac voltage pressence" using software only.

This will not be long term solution.

Guaranteed!