<｜begin▁of▁sentence｜>### Instruction:
As an Electrical Engineer developing a smart city infrastructure project, you are tasked with creating a network representation to simulate communication channels between 10 sensor nodes placed at key locations. Utilizing the capabilities of NetworkX, you need to generate an Erdős-Rényi graph where each potential connection between nodes has a 50% probability of being established. To effectively visualize this network structure, matplotlib will be employed for clear, graphical representation.
### Response:
import networkx as nx
import matplotlib.pyplot as plt

# Create a simple NetworkX graph
g = nx.erdos_renyi_graph(n=10, p=0.5)

# Draw the graph using matplotlib
nx.draw(g, with_labels=True)
plt.show()
<|EOT|>
