flash sensor