Smart mangrove restoration