An observer is an edge-detector: it watches the block in front and emits a short 1-tick redstone pulse from its back whenever that block changes state.
Bedrock Edition · Block dictionary
Observer — spec
Detects
Any block change in front of the face (red eye)
Output
2 game-tick pulse from the back (red dot), power 15