Add call to sensor update method before logging values. Without it power
sensor value woudn't be up to date.