Flat sensor