modified sensor part to enable current_now