Low-cost sensor records the level of rivers