add power voltage sensing logic