The values given by the wifi_strength variable are completely nonsensical, ranging values like -40 to -127 even if you have a strong connection.
Perhaps the variable value can be changed into numbers through -1 to 3 or something depending on the result instead.
-1: Not connected
0: No internet
1 to 3: Weak to strong internet
Perhaps the variable value can be changed into numbers through -1 to 3 or something depending on the result instead.
-1: Not connected
0: No internet
1 to 3: Weak to strong internet