Smart technology aided fence