SNMP issue with Ubiquiti Switches

Hi Everyone,
I am trying to add Ubiquiti swtiches to the Librenms and while doing that i am able to add half of the Switches with no issue but other half of Ubiquiti Switches giving me Errors like
"Could not connect, please check the snmp details and snmp reachability"
"SNMP v1: No reply with community public"
I have Compared the configuration of working and Non-working Switches which is exactly same.
please suggest me the solution to this issue…
Thanks

Which OS are you running? You’ll need to look at:
System > Advanced Configuration > SNMP > Access Control Group
and make sure SNMP v1 is set with appropriate permissions. Also make sure community is set correctly at:
System > Advanced Configuration > SNMP > Community