Does moving affect incense? [duplicate]

Yes, it does.

This is a part from game code that defines how incense works.

Simply, it spawns 1 Pokémon when you walk 200 meters (1 minute minimum between 200m movement spawns) or wait every 5 minute while not moving.

You can stay still and get 6 Pokémon, or get up to 30 Pokémon by moving.

Info from game code