Game Microbit x App inventor(Accelerometer)

Hello, we are trying to implement a program that when the microbit card receives a message sends the information to app inventor, which then stops recording the data from the accelerometer and takes the last recorded value. However, we can't stop the accelerometer from being taken. What block should we use to stop an action when a piece of information is received?

Something like this..?
image

Thank you for the attention you took for our request. However we do not understand how to add the variable "set accelerometer(microbit) . Enable to". Could you please reproduce the program with the microbit_accelerometer extension?

What is this?

image

and this? Did you forget something?

image

We have made a new program to address this problem. The block that you didn't understand was just to show you with the 3 little dots that we were stuck here.

Funcionou?