Create Msg2 correctly when pulse Reset button or change Sensor Powered switch.
Add two async tasks to send msg2 alone or msg1 plus msg2