Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

WSN applications: agriculture, structures and smart cities

Practical study notes on Wireless Sensor Network (WSN) applications in agriculture, structural monitoring, and smart cities, with definitions, key principles (coverage, connectivity, energy), formulas, worked problems, common exam mistakes and quick checks.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

WSN applications in agriculture, structural health monitoring (SHM) and smart cities deliver continuous sensing where human inspection is costly, dangerous or impossible. Engineers design node placement, sampling schedules and communication to meet coverage, latency and battery-life requirements while minimizing cost.

Key ideas

Start with definitions (simple language):

  • Wireless Sensor Network (WSN): a set of spatially distributed autonomous devices (called sensor nodes or motes) that measure physical quantities and communicate wirelessly to a sink (data collector).
  • Sensor node / mote: a device containing at minimum a sensor (converts physical quantity to electrical signal), a microcontroller, a radio transceiver, and a battery; may include energy harvesting.
  • Sensing range (R_s): maximum distance at which the sensor can reliably detect or measure the target (assumed circular in simple geometric models).
  • Communication range (R_c): maximum distance for wireless packet exchange between two nodes (assumed circular for unit-disk models).
  • Coverage: a region is covered if every point in the region is within R_s of at least one active sensor. k-coverage: every point is within R_s of at least k sensors.
  • Connectivity: the network graph (nodes as vertices, edges between nodes within R_c) is connected if there exists a multi-hop path from every node to the sink.

Important theorem used in many WSN planning answers (unit-disk model):

  • Coverage implies connectivity if R_c ≥ 2·R_s, under these assumptions: nodes are points in a plane; sensing and communication areas are perfect disks; communication is symmetric; the sink is within the covered region; the monitored region is convex (or at least connected without holes). Note: this condition is sufficient, not necessary. Sketch of proof (common exam derivation):
    1. Consider any two neighboring sensors whose sensing circles touch or overlap to guarantee coverage of boundary points. The distance between their centers ≤ 2·R_s.
    2. If R_c ≥ 2·R_s, this pair is within communication range, so they have a direct link.
    3. Full coverage of a connected region implies the union of sensing disks is connected; adjacent disks overlap or touch. With R_c ≥ 2·R_s, each such overlap implies a communication link between the corresponding sensors, yielding a multi-hop path from any covering sensor to the sink; thus the set of sensors covering the area is connected to the sink. (State assumptions explicitly: no obstacles, disk model, symmetric radio ranges.)

Energy and data trade-offs (fundamental engineering constraints):

  • Duty cycling: nodes alternate between sleep and active modes to save energy; duty cycle = active_time / total_time.
  • Sampling rate: for a physical signal with maximum frequency f_max, the Nyquist sampling theorem requires sampling frequency f_s ≥ 2·f_max to avoid aliasing (assumes analog band-limited signal).
  • Data aggregation: combining readings from multiple sensors (averaging, compression) reduces transmissions and thus energy.
  • Localization: many applications need node positions (absolute or relative); localization error affects placement and data interpretation.

Application-specific points:

  • Precision agriculture: sensors for soil moisture, temperature, humidity, and light; design goals are spatial coverage of fields, battery lifetime through duty cycling, and reliable delivery to a gateway (often via multi-hop or cellular uplink). Sub-GHz or LPWAN links are often used for longer range; sampling is typically minutes to hours unless event-driven.
  • Structural health monitoring (SHM): vibration, strain and displacement sensors; main requirements are high sampling rates for dynamic signals, time synchronization, and long-term reliability (sometimes energy harvesting via vibration). Typical sampling rates are 100–1000 Hz (or higher for modal analysis), synchronization often needs sub-millisecond accuracy, and anti-aliasing filters are required.
  • Smart cities: distributed sensors for air quality, noise, parking, and lighting; emphasis on scalability, heterogeneous nodes, integration with cloud/IoT stacks, and privacy/security. Common communication choices include IEEE 802.15.4/6LoWPAN for local mesh and LPWANs (LoRaWAN, NB-IoT) for long range, with trade-offs among data rate, range, and latency.

Diagrams to draw in an exam (describe exactly):

  • For coverage/connectivity: draw a rectangular field. Place several sensor nodes as dots. Around each dot draw a circle of radius R_s (label R_s) and a larger dashed circle of radius R_c (label R_c). Show two neighboring sensing circles overlapping; mark their centers distance ≤ 2·R_s and draw a straight line between centers annotated with the value. Indicate a sink node and show multi-hop links used for connectivity.

Formulas

Area_sensor = π · R_s² — area covered by one sensor in the circular sensing model. R_s in metres (m), area in square metres (m²). Applies when sensing area is circular.

N_min ≈ Area_field / (π · R_s²) — lower bound estimate of number of sensors to cover a field of given area (m²). N is unitless. Boundary effects and overlap increase real requirement.

f_s ≥ 2 · f_max — Nyquist sampling theorem (f_s in Hz, f_max in Hz). Assumes analog signal band-limited to f_max.

E_tx(k, d) = E_elec · k + E_amp · k · d^n — radio transmission energy to send k bits over distance d (Joules). E_elec in J/bit (electronics energy), E_amp in J/bit/m^n (amplifier), n path-loss exponent (commonly 2 in free-space). Applies to simple first-order radio energy model; ignores retransmissions and idle listening.

Duty_cycle = T_active / T_period — dimensionless fraction.

Energy_per_period = E_sense + E_proc + Duty_cycle · E_comm — simple accounting of energy use per period; energies in Joules (J). Here E_comm denotes the energy the radio would consume if active for the entire period; alternatively use a power model: E_per_period = T_period · (Duty_cycle · P_active + (1 − Duty_cycle) · P_sleep) + E_sense + E_proc.

Battery_energy = Capacity_Ah · V · 3600 — convert battery capacity (Ah) and voltage V (V) to Joules (J). Capacity in ampere-hours (Ah).

Worked examples

Example 1 — Precision agriculture: sensor count for a 1 hectare field Given: field area = 1 ha = 10,000 m². Sensor sensing radius R_s = 10 m. Use circular sensing model. Steps:

  1. Compute area covered by one sensor: Area_sensor = π · R_s² = π · 10² = π · 100 ≈ 314.16 m².
  2. Lower-bound number of sensors: N_min = Area_field / Area_sensor = 10000 / 314.16 ≈ 31.83.
  3. Since N must be integer and boundary/overlap require extra sensors, choose N = 32 as theoretical lower bound; in practice add 10–20% for edges: recommended ≈ 36–38. Answer: At least 32 sensors (practically ~36–38 for edge coverage).

Example 2 — SHM: sampling and battery energy for vibration monitoring Given: maximum vibration frequency f_max = 200 Hz. Use 3-axis accelerometer, 16-bit samples (2 bytes per axis). Continuous active sampling duration 10 minutes per hour (duty cycle = 10/60 = 1/6). Battery: 2000 mAh at 3.7 V. Steps:

  1. Sampling rate by Nyquist: f_s ≥ 2·f_max = 400 Hz; choose f_s = 400 Hz.
  2. Samples per second per axis = 400. For 3 axes: 3 · 400 = 1200 samples/s.
  3. Bytes per second = 1200 samples/s · 2 bytes/sample = 2400 bytes/s.
  4. Active period per hour = 10 min = 600 s. Data per active period = 2400 bytes/s · 600 s = 1,440,000 bytes = 1.44 MB.
  5. Bits to transmit k = 1.44e6 bytes · 8 = 11.52e6 bits.
  6. Use radio model with E_elec = 50e-9 J/bit, E_amp = 100e-12 J/bit/m², d = 50 m, n = 2. E_tx = E_elec·k + E_amp·k·d² = 50e-9·11.52e6 + 100e-12·11.52e6·2500 ≈ 0.576 J + 2.88 J = 3.456 J.
  7. Battery energy: Capacity_Ah·V·3600 = 2 Ah · 3.7 V · 3600 = 26640 J.
  8. Fraction of battery used per 10-minute active period (transmit only) ≈ 3.456 / 26640 ≈ 0.00013 (0.013%). Even accounting for sensing and processing, battery life is long; main drains are idle listening and retransmissions. Answer: Sampling at 400 Hz produces 1.44 MB per 10 min; radio energy to send it ~3.46 J; with 2000 mAh battery (3.7 V) this is a tiny fraction of stored energy. (Verify radio constants with course values used in exams.)

Example 3 — Smart-city sensor connectivity check Given: a deployment where sensor sensing radius R_s = 20 m. Two cases: communication radius R_c = 40 m, and R_c = 35 m. Step:

  • If R_c = 40 m then R_c = 2·R_s, so by the coverage→connectivity theorem (unit-disk model) a covering set of sensors is connected (under assumptions). If R_c = 35 m < 2·R_s = 40 m, coverage does not guarantee connectivity; additional relay nodes or higher transmit power are needed. Answer: R_c = 40 m meets the R_c ≥ 2·R_s condition and guarantees connectivity under the disk model; R_c = 35 m does not.

Common mistakes

  • Applying Nyquist without checking whether the signal is band-limited; forgetting anti-aliasing filters in practice.
  • Using N = Area/Area_sensor and reporting it as exact count without stating it is a lower bound (ignores edges and overlaps).
  • Using radio energy formulas but forgetting to multiply by the number of retransmissions, ACK overhead, or idle listening energy.

For your exam

Kinds of questions you may get:

  • Definitions and short notes: define R_s, R_c, coverage, connectivity, duty cycle; list differences between agriculture/SHM/smart city requirements.
  • Derivations: prove the coverage→connectivity condition R_c ≥ 2·R_s under the unit-disk model; derive sensor-count lower bound from geometry.
  • Numericals: compute number of sensors for area coverage; compute sampling rate using Nyquist; estimate transmission energy using E_tx model and battery life.
  • Diagrams: draw sensor coverage and communication circles, show overlapping sensing disks and a multi-hop path to the sink. Full-marks answers include: clear definitions (bold the term), state assumptions, step-by-step derivation with intermediate values, units on all numbers, and a final boxed answer.

Quick check

  1. What condition between R_c and R_s is sufficient (in the unit-disk model) to guarantee that coverage implies connectivity?
  2. Using Nyquist, what is the minimum sampling rate to capture signals up to 300 Hz?
  3. If a sensor has R_s = 15 m, what is the area (in m²) it covers (use π ≈ 3.1416)? Answers: 1) R_c ≥ 2·R_s. 2) f_s ≥ 600 Hz. 3) Area = π·15² ≈ 706.86 m².

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?