Motion detection keeps light on until motion is detected again?

Trying to get some help with motion sensor. Is there a way to turn the lights on when motion is detected and have them stay on. but then when the same sensor detects motion again the lights will turn off immediately.

You can use the smart lighting app to create something like this. Same concept to turn it off but change what do you want to do -> turn off and only if switch -> is on.
Idk how well this will work in practice, but this is how you tell smartthings to do what you stated.

This worked perfect. Thank you for the support!!